//
//  SAForgetPSWSecondStepViewController.m
//  SunOn
//
//  Created by mc on 2017/5/3.
//  Copyright © 2017年 NeoZhang. All rights reserved.
//  忘记密码界面  第二步骤:设置新密码

#import "SAForgetPSWSecondStepViewController.h"
#import "SABaseViewController.h"//主界面

@interface SAForgetPSWSecondStepViewController ()
//返回
@property (weak, nonatomic) IBOutlet UIImageView *backImage;
//输入新密码
@property (weak, nonatomic) IBOutlet UITextField *inputNewPSW;
//再次输入
@property (weak, nonatomic) IBOutlet UITextField *inputAgen;

@property (weak, nonatomic) IBOutlet UIButton *done;

@end

@implementation SAForgetPSWSecondStepViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self configureView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - view method

- (IBAction)doneAction:(UIButton *)sender {
    UIApplication *app = [UIApplication sharedApplication];
    SABaseViewController *baseVC = [[SABaseViewController alloc] init];
    app.delegate.window.rootViewController = baseVC;
}

#pragma mark - custom method
- (void)backAction {
    DLog(@"返回");
    [self dismissViewControllerAnimated:YES completion:nil];
}
#pragma mark - view layout
- (void)configureView {
    SAViewRadius(self.done, 17.5);
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(backAction)];
    self.backImage.userInteractionEnabled = YES;
    [self.backImage addGestureRecognizer:tap];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
